# 安装编译环境
yum -y install gcc gcc-c++ autoconf automake libtool make
# 安装模块依赖库
yum -y install pcre* openssl* zlib*
# 编译安装
./configure --prefix=/usr/local/app/nginx --with-http_stub_status_module --with-http_ssl_module
make && make install